<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page errorPage="/Error.jsp"%>

<%
	String sessionValidation = (String) session
			.getAttribute("sessionValidation");
	if (!(("validSession").equals(sessionValidation))) {
		request.setAttribute("errorMessage", "Session Timeout!");
%>
<jsp:forward page="Login.jsp" />
<%
	}
%>

<!-- BEANS DECLARATION -->
<jsp:useBean id="dbmsUserBean" scope="session"
	class="edu.uic.ids517.model.DbLoginBean"></jsp:useBean>
<jsp:useBean id="dbaseBean" scope="session"
	class="edu.uic.ids517.model.DatabaseAccessBean"></jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body background="images/image1.jpg">
	<center>
		<h1>
			<font size="8" color="white">UIC Data Mining Tool</font>
		</h1>
		<br /> <br /> <br /> <a href="mainMenu.jsp"><font size="6"
			color="white">Home</font></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
			href="dbAccess.jsp"><font size="6" color="white">Database
				Access</font></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
			href="dataMiningTool.jsp"><font size="6" color="white">Data
				Mining Tool</font></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
			href="LogOut.jsp"><font size="6" color="white">Logout</font></a> <br />
		<hr>
		<br />
	</center>
	<form action="LogoutServlet" method="post">
		<table>
			<tr>
				<th><font size="5" color="white">Click Logout to confirm
						or Cancel to continue session:</font></th>
				<td><input TYPE="SUBMIT" name="session" value="Logout">
				</td>
				<td><input TYPE="SUBMIT" name="session" value="Cancel">
				</td>
			</tr>
		</table>
	</form>
</body>
</html>

